import sys

buf = open(sys.argv[1]).read()
result = ""
for t in buf.split("\n"):
	result += '"' + t + '\\n"' + ' +\n'

if len(sys.argv) < 3:
	print result
else:
	f = open(sys.argv[2], "w")
	f.write(result)
	f.close()